﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EjemploSVN.Models;
using Microsoft.Practices.Unity;

namespace EjemploSVN.Controllers
{
    public class BaseController : Controller
    {
        //
        // GET: /Base/

        [Dependency]
        public IUnitOfWorkFactory UoWFactory { get; set; }

        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            base.OnActionExecuted(filterContext);
            this.UoWFactory.DisposeUnitOfWork();
        }

    }
}
